<%--
  Created by IntelliJ IDEA.
  User: Ice Bear
  Date: 2022/11/7
  Time: 8:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<b>今天是个好日子</b>
<% int a = 1;
    int c = 1;
    String s = "今天阳光明媚";
    if (a > 0) {
%>

<b> <% out.write(s);  %><b>
    <b> <%=s%><b>
        <b> 今天很开心<b>
                <%
    }else {
%>
            <b> 今天开心个屁 <b>
                    <%
    }
%>
                <%--                    全局代码块--%>
                    <%!
        int b=1;
        public void test(){
                System.out.println(b);
                }
%>

</body>
</html>
